﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/OneColumn.master" AutoEventWireup="false" CodeBehind="AdvancedSearch.aspx.cs" Inherits="NopSolutions.NopCommerce.Web.AdvancedSearch" %>

<%@ Register TagPrefix="nopCommerce" TagName="ProductPrice2" Src="~/Modules/Catalog/ProductPrice2.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">
    <div class="block">
        <h1 class="block-title"><%= GetLocaleResourceString("Search.AdvancedSearch") %></h1>
        <div class="block-content">
            <p>Selectati in formaularul de mai jos criteriile de cautare pentru produse. Dupa ce ati selectat apasati butonul 'Cauta'. Daca, in urma cautarii, sunt gasite produse, acestea sunt afisate dupa butonul 'Cauta'.</p>
            <div class="form form-horizontal">
                <div class="control-group">
                    <label class="control-label" for="<%= ddlTreatment.ClientID %>">Ce tratezi?</label>
                    <div class="controls">
                        <asp:DropDownList ID="ddlTreatment" runat="server" AutoPostBack="true" />
                    </div>
                </div>
                <div class="control-group" id="pnlEssence" runat="server">
                    <label class="control-label" for="<%= chkEssence.ClientID %>">Ce esenta?</label>
                    <div class="controls">
                        <asp:DropDownList ID="chkEssence" runat="server" />
                    </div>
                </div>
                <div class="control-group" id="pnlConstruction" runat="server">
                    <label class="control-label" for="<%= chkConstruction.ClientID %>">Ce reprezinta constructia/lemnul?</label>
                    <div class="controls">
                        <asp:DropDownList ID="chkConstruction" runat="server" />
                    </div>
                </div>
                <div class="control-group" id="pnlTreatment" runat="server">
                    <label class="control-label" for="<%= chkTreatment.ClientID %>">Identifica tratamentul (tratamentele)</label>
                    <div class="controls">
                        <asp:DropDownList ID="chkTreatment" runat="server" />
                    </div>
                </div>
                <div class="form-actions">
                    <asp:Button ID="btnSearch" runat="server" CssClass="button primary" Text="Cauta" />
                </div>       
                <asp:Label ID="lblNoRecords" runat="server" CssClass="alert-box error" Text="Nu s-au gasit produse care sa corespunda cerintelor dvs. Reincercati cu alte criterii de cautare." />
            </div>            
            <asp:ListView runat="server" ID="lvProducts" GroupItemCount="3" >
                <LayoutTemplate>
                    <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                </LayoutTemplate>
                <GroupTemplate>
                    <ul class="product-grid">
                        <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                    </ul>
                </GroupTemplate>
                <GroupSeparatorTemplate><hr /></GroupSeparatorTemplate>
                <ItemTemplate>
                    <li class="product">
                        <div class="product">
                            <div class="product-picture"><asp:HyperLink ID="hlImageLink" runat="server" /></div>
                            <div class="product-info">

                                <h2 class="product-title"><asp:HyperLink ID="hlProduct" runat="server" /></h2>
                                <div class="product-short-description"><asp:Literal runat="server" ID="lShortDescription" /></div>

                                <asp:Panel class="product-bundles" id="pnlProductBundles" runat="server">
                                    <p><strong><asp:Literal ID="litBundleSave" runat="server" /></strong></p>
                                    <p class="head"><%= GetLocaleResourceString("Products.Bundles") %></p>
                                    <asp:Repeater ID="rptProductBundles" runat="server">
                                        <ItemTemplate>
                                            <div class="bundle-item">
                                                <h5 class="bundle-title"><asp:HyperLink ID="hlProductName" runat="server" /></h5>
                                                <div class="bundle-picture"><asp:HyperLink ID="hlProductImage" runat="server" /></div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </asp:Panel>

                            </div>
                            <div class="product-buy">
                                <div class="product-buttons">
                                    <asp:HyperLink runat="server" ID="lnkProductDetails" Text="<% $NopResources:Products.ProductDetails %>" CssClass="button" />
                                </div>
                            </div>
                        </div>
                    </li>
                </ItemTemplate>
            </asp:ListView>
            <nopCommerce:Pager runat="server" ID="productsPager" CssClass="pagination" FirstButtonText="<%$ NopResources:Pager.First %>" LastButtonText="<%$ NopResources:Pager.Last %>" NextButtonText="<%$ NopResources:Pager.Next %>" PreviousButtonText="<%$ NopResources:Pager.Previous %>" CurrentPageText="Pager.CurrentPage" />
        </div>
    </div>
</asp:Content>
